package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

public class FirstActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_first);
    }
    public void Login(View view){
        Intent intent = new Intent();
        intent.setClass(FirstActivity.this, LoginActivity.class);
        startActivity(intent);
    }
    //注册
    public void Register(View view){
        Intent intent = new Intent();
        intent.setClass(FirstActivity.this,RegisterActivity.class);
        startActivity(intent);

    }
}
